﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("Appointment")]
    public class Appointment
    {
        public int AppointmentId { set; get; }
        public string PatientId { set; get; }
        public string Specialty { set; get; }
        public string DoctorId { set; get; }
        public string Date { set; get; }
        public string Time { set; get; }
        public string Description { set; get; }
        public string Observations { get; set; } 

        /// <summary>
        /// Custructor without AppointmentID
        /// </summary>
        /// <param name="idPatient">id Patient</param>
        /// <param name="idDoctor">id Doctor</param>
        /// <param name="date">date</param>
        /// <param name="time">time</param>
        /// <param name="description">description</param>
        public Appointment( string idPatient, string specialty, string idDoctor, string date, string time, string description, string observations)
        {
            this.PatientId = idPatient;
            this.Specialty = specialty;
            this.DoctorId = idDoctor;
            this.Date = date;
            this.Time = time;
            this.Description = description;
            this.Observations = observations;
        }

        public Appointment()
        { }
    }
}
